package fire.chacracter;

import java.util.ArrayList;

import fire.item.Item;
import fire.pet.Pet;

import jgame.JGObject;

public abstract class Character extends JGObject {
	protected double speed;
	protected ArrayList<Pet> petList = new ArrayList<>();
	public ArrayList<Pet> getPetList() {
		return petList;
	}

	public void setPetList(ArrayList<Pet> petList) {
		this.petList = petList;
	}

	protected ArrayList<Item> itemList;

	public Character(String name, double x, double y, int collisionid,
			String gfxname, double speed) {
		super(name, true, x, y, collisionid, gfxname);
		this.speed = speed;
	}

	public void useItem(Item item) {
	}

	public void removePet(int petIndex) {
		itemList.remove(petIndex);
	}

	public void addItem(Item item) {
		itemList.add(item);
	}

	public void removeItem(int itemIndex) {
		itemList.remove(itemIndex);
	}
	
}
